home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * DrawingViewWraps.psw
- *
- *
- * Version: 2.0
- * Author: Ken Fromm
- * History:
- * 03-07-91 Added this comment.
- */
-
- defineps PSWMarkTime ()
- /StartTime realtime def
- endps
-
- defineps PSWReturnTime (|int *ElapsedTime)
- realtime StartTime sub
- ElapsedTime
- endps
-
- defineps PSWCachestatus(|int Array[7])
- cachestatus 7 -1 1 {1 roll} for 7 {Array} repeat
- endps
-
- defineps PSWCurrentcacheparams(|int *Size, *Lower, *Upper)
- currentcacheparams Upper Lower Size
- endps
-
- defineps PSWSetcacheparams(int Size, Lower, Upper)
- mark Size Lower Upper setcacheparams
- endps
-
- defineps PSWRmovetoShow(float X; char Str[Num]; int Num)
- X 0 rmoveto (Str) show
- endps
-
- defineps PSWShow(char Str[Num]; int Num)
- (Str) show
- endps
-
- defineps PSWAshow(float X, Y; char Str[Num]; int Num)
- X Y (Str) ashow
- endps
-
- defineps PSWWidthshow(float X, Y; int C; char Str[Num]; int Num)
- X Y C (Str) widthshow
- endps
-
- defineps PSWAwidthshow(float X, Y; int C; float AX, AY; char Str[Num]; int Num)
- X Y C AX AY (Str) awidthshow
- endps
-
- /*
- * Reencode the font, add BitmapWidths, ExactSize, InBetweenSize and
- * TransformedChar entries set to 0 to force the use of outline fonts at all times.
- */
- defineps PSWCopyFont(char *F1; char *F2)
- /F1 findfont dup begin
- dup length 4 add dict begin
- {
- 1 index /FID ne
- 2 index /UniqueID ne and
- { def } {pop pop} ifelse
- } forall
- /FontName /F2 def
-
- /BitmapWidths false def
- /ExactSize 0 def
- /InBetweenSize 0 def
- /TransformedChar 0 def
-
- /F2 currentdict definefont pop
- end
- end
- endps
-
- defineps PSWSetFont(char *Name; float Size)
- /Name findfont [Size 0 0 Size neg 0 0 ] makefont setfont
- endps
-